package com.scholarship.modules.admin.service;

import com.scholarship.common.dto.ResultListDto;
import com.scholarship.modules.admin.dto.*;

import java.util.List;
import java.util.Map;

/**
 * @Author Z.J.H
 * @create 2021/6/14 20:13
 */
public interface RankingListService {

    /**
     * 获取成绩排名列表查询条件
     * @return
     * @throws Exception
     */
    Map<String, List<String>> getRankingQuery() throws Exception;

    /**
     * 查询所有排名信息
     * @return
     * @throws Exception
     */
    ResultListDto<RankingListDto> listAllRanking(Integer pageNum, Integer pageSize) throws Exception;

    /**
     * 根据查询条件查询排名信息
     * @param rankingQueryDto
     * @return
     * @throws Exception
     */
    ResultListDto<RankingListDto> listRankingByQuery(Integer pageNum, Integer pageSize, RankingQueryDto rankingQueryDto) throws Exception;

    /**
     * 根据搜索查询排名信息
     * @param searchStr
     * @return
     * @throws Exception
     */
    ResultListDto<RankingListDto> listRankingBySearch(Integer pageNum,Integer pageSize,String searchStr) throws Exception;

    /**
     * 即刻刷新排名信息
     * @throws Exception
     */
    void refreshRankingInformation() throws Exception;
}
